home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / environment_effects_scripts / environment_explosion_big1.lua < prev    next >
Encoding:
Text File  |  2007-01-25  |  17.5 KB  |  674 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_ENVIRONMENT_EXPLOSION_BIG1)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5.  
  6. desc.ActivityType = ENACT_ACTIVE
  7.  
  8. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  9. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  10. local vzbzd1 = D3DXVECTOR3:new(0,0,0)
  11. desc.LocalPosition = vzbzd1
  12. vzbzd1:delete()
  13. desc.isAnimateTexture = false
  14. desc.RenderType = ENRENDERTYPE_GEOMETRY
  15.  
  16. Emitter = desc.PS.PSDescription
  17. Emitter.ParticleTypesNumber = 5
  18. local vzbzd2 = D3DXVECTOR3:new(0,0,0)
  19. Emitter.EmitterPosition = vzbzd2
  20. vzbzd2:delete()
  21. local vzbzd3 = D3DXVECTOR3:new(0,0,0)
  22. Emitter.EmitterDirection = vzbzd3
  23. vzbzd3:delete()
  24. Emitter.EmitterLifeTime = 1
  25.  
  26.  
  27. PT = Emitter.ParticleTypesParams[1]
  28. PT.IsEmitterLocked = false
  29. PT.DrawOrder = 3
  30. PT.Material = ENMAT_SIMPLEPARTICLE
  31.  
  32. PT.TextureName = "environment_effect_explosion_trash1.dds"
  33.  
  34. PT.ParticlesPerSecond = 0.1;
  35. PT.InitialNumberOfParticles = 20.0;
  36. PT.BaseLifeTime = 5.0;
  37. PT.BaseLifeTimeVariance = 0.0;
  38. PT.BaseSpeed = 2.0;
  39. PT.BaseSpeedVariance = 1.0;
  40.  
  41. PT.TangentSpeed = 1.0;
  42. PT.TangentSpeedVariance = 1.5;
  43. local vzbzd4 = D3DXVECTOR3:new(1.0,0.0,0.0)
  44. PT.TangentDirection = vzbzd4
  45. vzbzd4:delete()
  46. PT.TangentAngleMin = 0.0;
  47. PT.TangentAngleMax = 6.28;
  48. PT.IsTangentDependOnBase = false;
  49.  
  50. PT.BaseAngle = 3.0;
  51. PT.BaseAngleVariance = 5.0;
  52. PT.BaseAngleSpeed = 0.2;
  53. PT.BaseAngleSpeedVariance = 0.3;
  54. PT.BaseAngleSpeedDirection = 0;
  55. local vzbzd5 = D3DXVECTOR3:new(0.0,1.0,0.0)
  56. PT.BaseDirection = vzbzd5
  57. vzbzd5:delete()
  58. local vzbzd6 = D3DXVECTOR3:new(0.0,0.0,0.0)
  59. PT.BaseDirectionVariance = vzbzd6
  60. vzbzd6:delete()
  61. local vzbzd7 = D3DXVECTOR3:new(0,5,0)
  62. PT.BasePosition = vzbzd7
  63. vzbzd7:delete()
  64. local vzbzd8 = D3DXVECTOR3:new(10,10,10)
  65. PT.BasePositionVariance = vzbzd8
  66. vzbzd8:delete()
  67. PT.BaseSize = 6.0;
  68. PT.BaseSizeVariance = 0.3;
  69.  
  70. -- color over time
  71. PT.ColorOverTimeR[1].TimePercent = 0.0;
  72. PT.ColorOverTimeR[1].Value = 0.5;
  73. PT.ColorOverTimeG[1].TimePercent = 0.0;
  74. PT.ColorOverTimeG[1].Value = 0.5;
  75. PT.ColorOverTimeB[1].TimePercent = 0.0;
  76. PT.ColorOverTimeB[1].Value = 0.5;
  77.  
  78. PT.ColorOverTimeR[2].TimePercent = 1.0;
  79. PT.ColorOverTimeR[2].Value = 0.5;
  80. PT.ColorOverTimeG[2].TimePercent = 1.0;
  81. PT.ColorOverTimeG[2].Value = 0.5;
  82. PT.ColorOverTimeB[2].TimePercent = 1.0;
  83. PT.ColorOverTimeB[2].Value = 0.5;
  84.  
  85. -- transparency over time
  86. PT.TransparencyOverTime[1].TimePercent = 0.0;
  87. PT.TransparencyOverTime[1].Value = 1.0;
  88.  
  89. PT.TransparencyOverTime[2].TimePercent = 0.1;
  90. PT.TransparencyOverTime[2].Value = 1.0;
  91.  
  92. PT.TransparencyOverTime[3].TimePercent = 1.0;
  93. PT.TransparencyOverTime[3].Value = 1.0;
  94.  
  95. -- size over time
  96. PT.SizeOverTime[1].TimePercent = 0.0;
  97. PT.SizeOverTime[1].Value = 1.0;
  98.  
  99. PT.SizeOverTime[2].TimePercent = 0.2;
  100. PT.SizeOverTime[2].Value = 2.0;
  101.  
  102. PT.SizeOverTime[3].TimePercent = 1.0;
  103. PT.SizeOverTime[3].Value = 4.0;
  104.  
  105. -- Speed over time
  106. PT.SpeedOverTime[1].TimePercent = 0.0;
  107. PT.SpeedOverTime[1].Value = 10.0;
  108.  
  109. PT.SpeedOverTime[2].TimePercent = 0.5;
  110. PT.SpeedOverTime[2].Value = 0.0;
  111.  
  112. PT.SpeedOverTime[3].TimePercent = 1.0;
  113. PT.SpeedOverTime[3].Value = 0.0;
  114.  
  115. -- Tangent Speed over time
  116. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  117. PT.TangentSpeedOverTime[1].Value = 10.0;
  118.  
  119. PT.TangentSpeedOverTime[2].TimePercent = 0.03;
  120. PT.TangentSpeedOverTime[2].Value = 10.0;
  121.  
  122. PT.TangentSpeedOverTime[3].TimePercent = 1.0;
  123. PT.TangentSpeedOverTime[3].Value = 20.0;
  124.  
  125.  
  126. -- GravityAcceleration over time
  127. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  128. PT.GravityAccelerationOverTime[1].Value = 80.0;
  129.  
  130. PT.GravityAccelerationOverTime[2].TimePercent = 0.2;
  131. PT.GravityAccelerationOverTime[2].Value = -50.0;
  132.  
  133. PT.GravityAccelerationOverTime[3].TimePercent = 1.0;
  134. PT.GravityAccelerationOverTime[3].Value = -100.0;
  135.  
  136. -- AngleSpeed over time
  137. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  138. PT.AngleSpeedOverTime[1].Value = 1.0;
  139.  
  140. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  141. PT.AngleSpeedOverTime[2].Value = 2.0;
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154. PT = Emitter.ParticleTypesParams[2]
  155. PT.IsEmitterLocked = false
  156. PT.DrawOrder = 4
  157. PT.Material = ENMAT_PARTICLE_LIGHT
  158.  
  159. PT.TextureName = "environment_effect_explosion_sparkles2.dds"
  160.  
  161. PT.ParticlesPerSecond = 0.1;
  162. PT.InitialNumberOfParticles = 25.0;
  163. PT.BaseLifeTime = 2.0;
  164. PT.BaseLifeTimeVariance = 0.4;
  165. PT.BaseSpeed = 2.0;
  166. PT.BaseSpeedVariance = 1.0;
  167.  
  168. PT.TangentSpeed = 1.0;
  169. PT.TangentSpeedVariance = 1.5;
  170. local vzbzd9 = D3DXVECTOR3:new(1.0,0.0,0.0)
  171. PT.TangentDirection = vzbzd9
  172. vzbzd9:delete()
  173. PT.TangentAngleMin = 0.0;
  174. PT.TangentAngleMax = 6.28;
  175. PT.IsTangentDependOnBase = false;
  176.  
  177. PT.BaseAngle = 3.0;
  178. PT.BaseAngleVariance = 5.0;
  179. PT.BaseAngleSpeed = 0.0;
  180. PT.BaseAngleSpeedVariance = 0.0;
  181. PT.BaseAngleSpeedDirection = 0;
  182. local vzbzd10 = D3DXVECTOR3:new(0.0,1.0,0.0)
  183. PT.BaseDirection = vzbzd10
  184. vzbzd10:delete()
  185. local vzbzd11 = D3DXVECTOR3:new(0.0,0.0,0.0)
  186. PT.BaseDirectionVariance = vzbzd11
  187. vzbzd11:delete()
  188. local vzbzd12 = D3DXVECTOR3:new(0,5,0)
  189. PT.BasePosition = vzbzd12
  190. vzbzd12:delete()
  191. local vzbzd13 = D3DXVECTOR3:new(5,5,5)
  192. PT.BasePositionVariance = vzbzd13
  193. vzbzd13:delete()
  194. PT.BaseSize = 3.0;
  195. PT.BaseSizeVariance = 0.2;
  196.  
  197. -- color over time
  198. PT.ColorOverTimeR[1].TimePercent = 0.0;
  199. PT.ColorOverTimeR[1].Value = 0.5;
  200. PT.ColorOverTimeG[1].TimePercent = 0.0;
  201. PT.ColorOverTimeG[1].Value = 0.5;
  202. PT.ColorOverTimeB[1].TimePercent = 0.0;
  203. PT.ColorOverTimeB[1].Value = 0.5;
  204.  
  205. PT.ColorOverTimeR[2].TimePercent = 1.0;
  206. PT.ColorOverTimeR[2].Value = 0.5;
  207. PT.ColorOverTimeG[2].TimePercent = 1.0;
  208. PT.ColorOverTimeG[2].Value = 0.5;
  209. PT.ColorOverTimeB[2].TimePercent = 1.0;
  210. PT.ColorOverTimeB[2].Value = 0.5;
  211.  
  212. -- transparency over time
  213. PT.TransparencyOverTime[1].TimePercent = 0.0;
  214. PT.TransparencyOverTime[1].Value = 0.0;
  215.  
  216. PT.TransparencyOverTime[2].TimePercent = 0.1;
  217. PT.TransparencyOverTime[2].Value = 0.8;
  218.  
  219. PT.TransparencyOverTime[3].TimePercent = 1.0;
  220. PT.TransparencyOverTime[3].Value = 0.0;
  221.  
  222. -- size over time
  223. PT.SizeOverTime[1].TimePercent = 0.0;
  224. PT.SizeOverTime[1].Value = 4.0;
  225.  
  226. PT.SizeOverTime[2].TimePercent = 0.1;
  227. PT.SizeOverTime[2].Value = 8.0;
  228.  
  229. PT.SizeOverTime[3].TimePercent = 1.0;
  230. PT.SizeOverTime[3].Value = 10.0;
  231.  
  232. -- Speed over time
  233. PT.SpeedOverTime[1].TimePercent = 0.0;
  234. PT.SpeedOverTime[1].Value = 20.0;
  235.  
  236. PT.SpeedOverTime[2].TimePercent = 0.1;
  237. PT.SpeedOverTime[2].Value = 0.0;
  238.  
  239. PT.SpeedOverTime[3].TimePercent = 1.0;
  240. PT.SpeedOverTime[3].Value = 0.0;
  241.  
  242. -- Tangent Speed over time
  243. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  244. PT.TangentSpeedOverTime[1].Value = 20.0;
  245.  
  246. PT.TangentSpeedOverTime[3].TimePercent = 1.0;
  247. PT.TangentSpeedOverTime[3].Value = 0.0;
  248.  
  249.  
  250. -- GravityAcceleration over time
  251. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  252. PT.GravityAccelerationOverTime[1].Value = 20.0;
  253.  
  254. PT.GravityAccelerationOverTime[2].TimePercent = 0.1;
  255. PT.GravityAccelerationOverTime[2].Value = 0.0;
  256.  
  257. PT.GravityAccelerationOverTime[3].TimePercent = 1.0;
  258. PT.GravityAccelerationOverTime[3].Value = -5.0;
  259.  
  260. -- AngleSpeed over time
  261. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  262. PT.AngleSpeedOverTime[1].Value = 1.0;
  263.  
  264. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  265. PT.AngleSpeedOverTime[2].Value = 2.0;
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280. PT = Emitter.ParticleTypesParams[3]
  281. PT.IsEmitterLocked = false
  282. PT.DrawOrder = 2
  283. PT.Material = ENMAT_PARTICLE_LIGHT
  284.  
  285. PT.TextureName = "environment_effect_explosion_smoke2.dds"
  286.  
  287.  
  288. PT.ParticlesPerSecond = 0.1;
  289. PT.InitialNumberOfParticles = 10.0;
  290. PT.BaseLifeTime = 1.5;
  291. PT.BaseLifeTimeVariance = 0.1;
  292. PT.BaseSpeed = 5.0;
  293. PT.BaseSpeedVariance = 1.0;
  294.  
  295. PT.TangentSpeed = 2.0;
  296. PT.TangentSpeedVariance = 0.1;
  297. local vzbzd14 = D3DXVECTOR3:new(1.0,0.0,0.0)
  298. PT.TangentDirection = vzbzd14
  299. vzbzd14:delete()
  300. PT.TangentAngleMin = 0.0;
  301. PT.TangentAngleMax = 6.28;
  302. PT.IsTangentDependOnBase = false;
  303.  
  304. PT.BaseAngle = 3.0;
  305. PT.BaseAngleVariance = 5.0;
  306. PT.BaseAngleSpeed = 0.5;
  307. PT.BaseAngleSpeedVariance = 0.3;
  308. PT.BaseAngleSpeedDirection = 0;
  309. local vzbzd15 = D3DXVECTOR3:new(0.0,1.0,0.0)
  310. PT.BaseDirection = vzbzd15
  311. vzbzd15:delete()
  312. local vzbzd16 = D3DXVECTOR3:new(0.0,0.0,0.0)
  313. PT.BaseDirectionVariance = vzbzd16
  314. vzbzd16:delete()
  315. local vzbzd17 = D3DXVECTOR3:new(0,5,0)
  316. PT.BasePosition = vzbzd17
  317. vzbzd17:delete()
  318. local vzbzd18 = D3DXVECTOR3:new(10,10,10)
  319. PT.BasePositionVariance = vzbzd18
  320. vzbzd18:delete()
  321. PT.BaseSize = 3.0;
  322. PT.BaseSizeVariance = 0.3;
  323.  
  324. -- color over time
  325. PT.ColorOverTimeR[1].TimePercent = 0.0;
  326. PT.ColorOverTimeR[1].Value = 0.5;
  327. PT.ColorOverTimeG[1].TimePercent = 0.0;
  328. PT.ColorOverTimeG[1].Value = 0.5;
  329. PT.ColorOverTimeB[1].TimePercent = 0.0;
  330. PT.ColorOverTimeB[1].Value = 0.5;
  331.  
  332. PT.ColorOverTimeR[2].TimePercent = 1.0;
  333. PT.ColorOverTimeR[2].Value = 0.5;
  334. PT.ColorOverTimeG[2].TimePercent = 1.0;
  335. PT.ColorOverTimeG[2].Value = 0.2    ;
  336. PT.ColorOverTimeB[2].TimePercent = 1.0;
  337. PT.ColorOverTimeB[2].Value = 0.0;
  338.  
  339. -- transparency over time
  340. PT.TransparencyOverTime[1].TimePercent = 0.0;
  341. PT.TransparencyOverTime[1].Value = 0.0;
  342.  
  343. PT.TransparencyOverTime[2].TimePercent = 0.01;
  344. PT.TransparencyOverTime[2].Value = 0.9;
  345.  
  346. PT.TransparencyOverTime[3].TimePercent = 0.7;
  347. PT.TransparencyOverTime[3].Value = 0.5;
  348.  
  349. PT.TransparencyOverTime[4].TimePercent = 1.0;
  350. PT.TransparencyOverTime[4].Value = 0.0;
  351.  
  352. -- size over time
  353. PT.SizeOverTime[1].TimePercent = 0.0;
  354. PT.SizeOverTime[1].Value = 3.0;
  355.  
  356. PT.SizeOverTime[2].TimePercent = 0.1;
  357. PT.SizeOverTime[2].Value = 8.0;
  358.  
  359. PT.SizeOverTime[3].TimePercent = 1.0;
  360. PT.SizeOverTime[3].Value = 12.0;
  361.  
  362. -- Speed over time
  363. PT.SpeedOverTime[1].TimePercent = 0.0;
  364. PT.SpeedOverTime[1].Value = 0.0;
  365.  
  366. PT.SpeedOverTime[2].TimePercent = 1.0;
  367. PT.SpeedOverTime[2].Value = 0.0;
  368.  
  369. -- Tangent Speed over time
  370. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  371. PT.TangentSpeedOverTime[1].Value = 60.0;
  372.  
  373. PT.TangentSpeedOverTime[2].TimePercent = 0.1;
  374. PT.TangentSpeedOverTime[2].Value = 3.0;
  375.  
  376. PT.TangentSpeedOverTime[3].TimePercent = 0.5;
  377. PT.TangentSpeedOverTime[3].Value = 1.0;
  378.  
  379. PT.TangentSpeedOverTime[4].TimePercent = 1.0;
  380. PT.TangentSpeedOverTime[4].Value = 1.0;
  381.  
  382.  
  383. -- GravityAcceleration over time
  384. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  385. PT.GravityAccelerationOverTime[1].Value = 0.0;
  386.  
  387. PT.GravityAccelerationOverTime[2].TimePercent = 0.4;
  388. PT.GravityAccelerationOverTime[2].Value = 0.0;
  389.  
  390. PT.GravityAccelerationOverTime[3].TimePercent = 1.0;
  391. PT.GravityAccelerationOverTime[3].Value = 0.0;
  392.  
  393. -- AngleSpeed over time
  394. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  395. PT.AngleSpeedOverTime[1].Value = 3.0;
  396.  
  397. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  398. PT.AngleSpeedOverTime[2].Value = 1.0;
  399.  
  400.  
  401.  
  402.  
  403.  
  404. PT = Emitter.ParticleTypesParams[4]
  405. PT.IsEmitterLocked = false
  406. PT.DrawOrder = 1
  407. PT.Material = ENMAT_SIMPLEPARTICLE
  408.  
  409. PT.TextureName = "environment_effect_explosion_smoke14.dds"
  410.  
  411. PT.ParticlesPerSecond = 0.1;
  412. PT.InitialNumberOfParticles = 20.0;
  413. PT.BaseLifeTime = 4.0;
  414. PT.BaseLifeTimeVariance = 0.3;
  415. PT.BaseSpeed = 5.0;
  416. PT.BaseSpeedVariance = 1.0;
  417.  
  418. PT.TangentSpeed = 2.0;
  419. PT.TangentSpeedVariance = 0.1;
  420. local vzbzd19 = D3DXVECTOR3:new(1.0,0.0,0.0)
  421. PT.TangentDirection = vzbzd19
  422. vzbzd19:delete()
  423. PT.TangentAngleMin = 0.0;
  424. PT.TangentAngleMax = 6.28;
  425. PT.IsTangentDependOnBase = false;
  426.  
  427. PT.BaseAngle = 3.0;
  428. PT.BaseAngleVariance = 5.0;
  429. PT.BaseAngleSpeed = 0.5;
  430. PT.BaseAngleSpeedVariance = 0.3;
  431. PT.BaseAngleSpeedDirection = 0;
  432. local vzbzd20 = D3DXVECTOR3:new(0.0,1.0,0.0)
  433. PT.BaseDirection = vzbzd20
  434. vzbzd20:delete()
  435. local vzbzd21 = D3DXVECTOR3:new(0.0,0.0,0.0)
  436. PT.BaseDirectionVariance = vzbzd21
  437. vzbzd21:delete()
  438. local vzbzd22 = D3DXVECTOR3:new(0,5,0)
  439. PT.BasePosition = vzbzd22
  440. vzbzd22:delete()
  441. local vzbzd23 = D3DXVECTOR3:new(10,10,10)
  442. PT.BasePositionVariance = vzbzd23
  443. vzbzd23:delete()
  444. PT.BaseSize = 7.0;
  445. PT.BaseSizeVariance = 0.2;
  446.  
  447. -- color over time
  448. PT.ColorOverTimeR[1].TimePercent = 0.0;
  449. PT.ColorOverTimeR[1].Value = 0.3;
  450. PT.ColorOverTimeG[1].TimePercent = 0.0;
  451. PT.ColorOverTimeG[1].Value = 0.3;
  452. PT.ColorOverTimeB[1].TimePercent = 0.0;
  453. PT.ColorOverTimeB[1].Value = 0.3;
  454.  
  455. PT.ColorOverTimeR[2].TimePercent = 1.0;
  456. PT.ColorOverTimeR[2].Value = 0.2;
  457. PT.ColorOverTimeG[2].TimePercent = 1.0;
  458. PT.ColorOverTimeG[2].Value = 0.2;
  459. PT.ColorOverTimeB[2].TimePercent = 1.0;
  460. PT.ColorOverTimeB[2].Value = 0.2;
  461.  
  462. -- transparency over time
  463. PT.TransparencyOverTime[1].TimePercent = 0.0;
  464. PT.TransparencyOverTime[1].Value = 0.0;
  465.  
  466. PT.TransparencyOverTime[2].TimePercent = 0.1;
  467. PT.TransparencyOverTime[2].Value = 0.7;
  468.  
  469. PT.TransparencyOverTime[3].TimePercent = 0.7;
  470. PT.TransparencyOverTime[3].Value = 0.4;
  471.  
  472. PT.TransparencyOverTime[4].TimePercent = 1.0;
  473. PT.TransparencyOverTime[4].Value = 0.0;
  474.  
  475. -- size over time
  476. PT.SizeOverTime[1].TimePercent = 0.0;
  477. PT.SizeOverTime[1].Value = 3.0;
  478.  
  479. PT.SizeOverTime[2].TimePercent = 0.1;
  480. PT.SizeOverTime[2].Value = 8.0;
  481.  
  482. PT.SizeOverTime[3].TimePercent = 1.0;
  483. PT.SizeOverTime[3].Value = 10.0;
  484.  
  485. -- Speed over time
  486. PT.SpeedOverTime[1].TimePercent = 0.0;
  487. PT.SpeedOverTime[1].Value = 0.0;
  488.  
  489. PT.SpeedOverTime[2].TimePercent = 0.4;
  490. PT.SpeedOverTime[2].Value = 2.0;
  491.  
  492. PT.SpeedOverTime[3].TimePercent = 0.5;
  493. PT.SpeedOverTime[3].Value = 0.0;
  494.  
  495. PT.SpeedOverTime[4].TimePercent = 1.0;
  496. PT.SpeedOverTime[4].Value = 0.0;
  497.  
  498. -- Tangent Speed over time
  499. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  500. PT.TangentSpeedOverTime[1].Value = 40.0;
  501.  
  502. PT.TangentSpeedOverTime[2].TimePercent = 0.2;
  503. PT.TangentSpeedOverTime[2].Value = 3.0;
  504.  
  505. PT.TangentSpeedOverTime[3].TimePercent = 0.5;
  506. PT.TangentSpeedOverTime[3].Value = 2.0;
  507.  
  508. PT.TangentSpeedOverTime[4].TimePercent = 1.0;
  509. PT.TangentSpeedOverTime[4].Value = 0.0;
  510.  
  511.  
  512. -- GravityAcceleration over time
  513. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  514. PT.GravityAccelerationOverTime[1].Value = 20.0;
  515.  
  516. PT.GravityAccelerationOverTime[2].TimePercent = 0.1;
  517. PT.GravityAccelerationOverTime[2].Value = -5.0;
  518.  
  519. PT.GravityAccelerationOverTime[3].TimePercent = 1.0;
  520. PT.GravityAccelerationOverTime[3].Value = -5.0;
  521.  
  522. -- AngleSpeed over time
  523. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  524. PT.AngleSpeedOverTime[1].Value = 1.0;
  525.  
  526. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  527. PT.AngleSpeedOverTime[2].Value = 0.4;
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540.  
  541.  
  542.  
  543.  
  544. PT = Emitter.ParticleTypesParams[5]
  545. PT.IsEmitterLocked = false
  546. PT.DrawOrder = 5
  547. PT.Material = ENMAT_3DSPRITE_ALPHED
  548.  
  549. PT.TextureName = "environment_effect_explosion_mud.dds"
  550.  
  551. PT.ParticlesPerSecond = 0.1;
  552. PT.InitialNumberOfParticles = 20.0;
  553. PT.BaseLifeTime = 4.0;
  554. PT.BaseLifeTimeVariance = 0.3;
  555. PT.BaseSpeed = 5.0;
  556. PT.BaseSpeedVariance = 1.0;
  557.  
  558. PT.TangentSpeed = 2.0;
  559. PT.TangentSpeedVariance = 0.1;
  560. local vzbzd24 = D3DXVECTOR3:new(1.0,0.0,0.0)
  561. PT.TangentDirection = vzbzd24
  562. vzbzd24:delete()
  563. PT.TangentAngleMin = 0.0;
  564. PT.TangentAngleMax = 6.28;
  565. PT.IsTangentDependOnBase = false;
  566.  
  567. PT.BaseAngle = 3.0;
  568. PT.BaseAngleVariance = 5.0;
  569. PT.BaseAngleSpeed = 0.0;
  570. PT.BaseAngleSpeedVariance = 0.0;
  571. PT.BaseAngleSpeedDirection = 0;
  572. local vzbzd25 = D3DXVECTOR3:new(0.0,1.0,0.0)
  573. PT.BaseDirection = vzbzd25
  574. vzbzd25:delete()
  575. local vzbzd26 = D3DXVECTOR3:new(0.0,0.0,0.0)
  576. PT.BaseDirectionVariance = vzbzd26
  577. vzbzd26:delete()
  578. local vzbzd27 = D3DXVECTOR3:new(0,2,0)
  579. PT.BasePosition = vzbzd27
  580. vzbzd27:delete()
  581. local vzbzd28 = D3DXVECTOR3:new(5,5,5)
  582. PT.BasePositionVariance = vzbzd28
  583. vzbzd28:delete()
  584. PT.BaseSize = 3.0;
  585. PT.BaseSizeVariance = 1.0;
  586.  
  587. -- color over time
  588. PT.ColorOverTimeR[1].TimePercent = 0.0;
  589. PT.ColorOverTimeR[1].Value = 0.5;
  590. PT.ColorOverTimeG[1].TimePercent = 0.0;
  591. PT.ColorOverTimeG[1].Value = 0.5;
  592. PT.ColorOverTimeB[1].TimePercent = 0.0;
  593. PT.ColorOverTimeB[1].Value = 0.5;
  594.  
  595. PT.ColorOverTimeR[2].TimePercent = 1.0;
  596. PT.ColorOverTimeR[2].Value = 0.5;
  597. PT.ColorOverTimeG[2].TimePercent = 1.0;
  598. PT.ColorOverTimeG[2].Value = 0.5;
  599. PT.ColorOverTimeB[2].TimePercent = 1.0;
  600. PT.ColorOverTimeB[2].Value = 0.5;
  601.  
  602. -- transparency over time
  603. PT.TransparencyOverTime[1].TimePercent = 0.0;
  604. PT.TransparencyOverTime[1].Value = 0.0;
  605.  
  606. PT.TransparencyOverTime[2].TimePercent = 0.01;
  607. PT.TransparencyOverTime[2].Value = 1.0;
  608.  
  609. PT.TransparencyOverTime[3].TimePercent = 0.7;
  610. PT.TransparencyOverTime[3].Value = 1.0;
  611.  
  612. PT.TransparencyOverTime[4].TimePercent = 1.0;
  613. PT.TransparencyOverTime[4].Value = 0.0;
  614.  
  615. -- size over time
  616. PT.SizeOverTime[1].TimePercent = 0.0;
  617. PT.SizeOverTime[1].Value = 3.0;
  618.  
  619. PT.SizeOverTime[2].TimePercent = 0.4;
  620. PT.SizeOverTime[2].Value = 4.0;
  621.  
  622. PT.SizeOverTime[3].TimePercent = 0.45;
  623. PT.SizeOverTime[3].Value = 5.0;
  624.  
  625. PT.SizeOverTime[4].TimePercent = 0.7;
  626. PT.SizeOverTime[4].Value = 6.0;
  627.  
  628. PT.SizeOverTime[5].TimePercent = 1.0;
  629. PT.SizeOverTime[5].Value = 8.0;
  630.  
  631. -- Speed over time
  632. PT.SpeedOverTime[1].TimePercent = 0.0;
  633. PT.SpeedOverTime[1].Value = 3.0;
  634.  
  635. PT.SpeedOverTime[2].TimePercent = 0.4;
  636. PT.SpeedOverTime[2].Value = 2.0;
  637.  
  638. PT.SpeedOverTime[3].TimePercent = 0.5;
  639. PT.SpeedOverTime[3].Value = 0.0;
  640.  
  641. PT.SpeedOverTime[4].TimePercent = 1.0;
  642. PT.SpeedOverTime[4].Value = 0.0;
  643.  
  644. -- Tangent Speed over time
  645. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  646. PT.TangentSpeedOverTime[1].Value = 10.0;
  647.  
  648. PT.TangentSpeedOverTime[2].TimePercent = 0.2;
  649. PT.TangentSpeedOverTime[2].Value = 3.0;
  650.  
  651. PT.TangentSpeedOverTime[3].TimePercent = 0.5;
  652. PT.TangentSpeedOverTime[3].Value = 2.0;
  653.  
  654. PT.TangentSpeedOverTime[4].TimePercent = 1.0;
  655. PT.TangentSpeedOverTime[4].Value = 0.0;
  656.  
  657.  
  658. -- GravityAcceleration over time
  659. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  660. PT.GravityAccelerationOverTime[1].Value = 20.0;
  661.  
  662. PT.GravityAccelerationOverTime[2].TimePercent = 0.4;
  663. PT.GravityAccelerationOverTime[2].Value = -20.0;
  664.  
  665. PT.GravityAccelerationOverTime[3].TimePercent = 1.0;
  666. PT.GravityAccelerationOverTime[3].Value = -20.0;
  667.  
  668. -- AngleSpeed over time
  669. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  670. PT.AngleSpeedOverTime[1].Value = 3.0;
  671.  
  672. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  673. PT.AngleSpeedOverTime[2].Value = 1.0;
  674.